package com.example.lijinyuan.baseandroid.Intent;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.lijinyuan.baseandroid.R;


/**
 * Created by lijinyuan on 15/10/26.
 */
public class ImplicitIntent extends Activity {
    Button button;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.intent_implicit_intent);
        findViewById(R.id.implicit_intent).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent("com.example.lijinyuan.mydemo.intent.action.MyIntent.BlankIntent"));
            }
        });

        findViewById(R.id.start_phone).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse("tel:000-00000")));
            }
        });
    }
}
